Skip to content

Conversation

hashi-derek
Copy link

Prior to this function being added, it was not possible to set gRPC CallOptions on the call to grpc.NewClientStream(...) performed by the TransparentHandler.

Notably, the grpc.MaxRecvMsgSize() would not be configured and would result in errors if the payload size was exceeded, despite the fact that the proxy's server had the value correctly configured.

The introduction of this TransparentHandlerWithOptions(...) function allows for various settings to be configured on the handler and passed through to the grpc.NewClientStream(...) call.

Prior to this function being added, it was not possible to set gRPC CallOptions
on the call to `grpc.NewClientStream(...)` performed by the TransparentHandler.
Notably, the `grpc.MaxRecvMsgSize()` would not be configured and would result
in closed streams if the payload size was exceeded, despite the fact that the
proxy's server had the value correctly configured.

The introduction of this `TransparentHandlerWithOptions(...)` function allows
for various settings to be configured on the handler and passed through to the
`grpc.NewClientStream(...)` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant